package com.insurance.service;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.insurance.domain.bo.*;
import com.insurance.domain.entity.UserProduct;

import java.util.ArrayList;

/**
 * @author qcjstudy
 * @create 2023-04-29 11:40
 */
public interface ChainConnectService {

    JSONObject TYQX(CPatient cPatient);

    JSONArray QueryPat(CPatient cPatient);

    JSONArray QueryAllEvi(CPatient cPatient);

    JSONArray QueryAllUsers();

    JSONObject WriteMessaage(CPatient cPatient);

    JSONObject Verification(CDoctor cDoctor);

    JSONArray QueryPeople(CDoctor  cDoctor);

    JSONObject WrtieEviCode(WrtieEviCode wrtieEviCode);

    JSONObject OutHospital(CDoctor cDoctor);

    ArrayList<Case> QueryGX(SharedRecord sharedRecord);

    ArrayList<Case> QueryGL(SharedRecord sharedRecord);

    JSONObject GXGL(GXGL gxgl);

    ArrayList<Case> QueryBlockChain();

    JSONObject SetXiEvi(SharedRecord sharedRecord);

    /**
     * 创建保险约束
     * @param userProduct
     * @return
     */
    JSONObject CreateReason(UserProduct userProduct);

    /**
     * 购买保险
     * @param userProduct
     * @return
     */
    JSONObject BuyInsurance(UserProduct userProduct);

    /**
     * 自动索赔
     * @param userProduct
     * @return
     */
    JSONArray AutoMoney(UserProduct userProduct);
}
